package com.gmall.coupon;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.gmall.coupon.mapper")
@ComponentScan({"com.gmall"})
@EnableFeignClients(basePackages = {"com.gmall"})
public class CouponApplication implements ApplicationRunner {
    public static void main(String[] args) {
        SpringApplication.run(CouponApplication.class, args);
    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println("Coupon 启动成功1");
    }
}

